<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加栏目</title>
<link href="/Application/Admin/View/public/css/style.css" rel="stylesheet" type="text/css" />
<link href="/Application/Admin/View/public/css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/Application/Admin/View/public/js/jquery.js"></script>
<script type="text/javascript" src="/Application/Admin/View/public/js/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="/Application/Admin/View/public/js/select-ui.min.js"></script>
<script type="text/javascript" src="/Application/Admin/View/public/editor/kindeditor.js"></script>

<script type="text/javascript">
    KE.show({
        id : 'content7',
        cssPath : './index.css'
    });
  </script>
  
<script type="text/javascript">
$(document).ready(function(e) {
    $(".select1").uedSelect({
		width : 345			  
	});
	$(".select2").uedSelect({
		width : 167  
	});
	$(".select3").uedSelect({
		width : 100
	});
});
</script>
</head>

<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
     <li><a href="<?php echo U('Admin/Index/welcome/');?>">首页</a></li>
    <li><a href="<?php echo U('Admin/category/index/');?>">栏目管理</a></li>
    <li><a href="<?php echo U('Admin/category/addCate/');?>">添加栏目</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    
    
    <div id="usual1" class="usual"> 
    <form action="" method="post">
    <div class="itab">
  	<ul> 
    <li><a href="#tab1" class="selected">添加栏目</a></li> 
    <li><a href="#tab2">高级选项</a></li> 
  	</ul>
    </div> 
    
  	<div id="tab1" class="tabson">
    
    <ul class="forminfo">
    <li><label>内容模型<b>*</b></label>

    <div class="vocation">
    <select class="select1" name="duosute_model_mid">
        <?php if(is_array($ModelM)): foreach($ModelM as $key=>$v): ?><option value="<?php echo ($v["mid"]); ?>"><?php echo ($v["mname"]); ?>|<?php echo ($v["mfield"]); ?></option><?php endforeach; endif; ?>  
    </select>
    </div>


    </li>
   
    <li><label>所属栏目<b>*</b></label>  
    

    <div class="vocation">
    <select class="select1" name="pid">
        <option value="0">顶级栏目</option>
        <?php if(is_array($cate)): foreach($cate as $key=>$v): ?><option value="<?php echo ($v["cid"]); ?>"><?php echo ($v["name"]); ?></option><?php endforeach; endif; ?>
    </select>
    </div>
    
    </li>
    
    <li><label>栏目名称<b>*</b></label>
    
    <input name="name" type="text" class="dfinput" value=""  />（中文名称）
    </li>

    <li><label>是否隐藏栏目<b>*</b></label>
    <div class="cityleft">
    <select class="select2" name="is_show">
    <option  value="0">显示</option>
    <option value="1">隐藏</option>
    </select>
    </div>
    </li>


    <li><label>栏目排序<b>*</b></label>
    
    <input name="sort" type="text" class="dfinput" value="" style="width:165px;" />
    </li>



    
    </ul>
    
    </div> 
    
    
  	<div id="tab2" class="tabson">
    <ul class="forminfo">

    <li><label>封面模板<b>*</b></label>    
    <input name="index_tpl" type="text" class="dfinput" value=""  />
    </li>



    <li><label>列表模板<b>*</b></label>    
    <input name="list_tpl" type="text" class="dfinput" value=""  />
    </li>

    <li><label>文章模板<b>*</b></label>    
    <input name="content_tpl" type="text" class="dfinput" value=""  />
    </li>

    <li><label>封面命名规则<b>*</b></label>    
    <input name="index_rule" type="text" class="dfinput" value=""  />
    </li>

    <li><label>列表命名规则<b>*</b></label>    
    <input name="list_rule" type="text" class="dfinput" value=""  />
    </li>

    <li><label>文章命名规则<b>*</b></label>    
    <input name="content_rule" type="text" class="dfinput" value=""  />
    </li>

    <li><label>SEO标题<b>*</b></label>    
    <input name="title" type="text" class="dfinput" value=""  />
    </li>


    <li><label>关键字<b>*</b></label>    
    <input name="keyword" type="text" class="dfinput" value=""  />
    </li>


    <li><label>栏目描述<b>*</b></label>    
  
    <textarea name="description" cols="50" rows="6"></textarea>
    </li>





    </ul>
    </div>  
     <li><label>&nbsp;</label><input name="" type="submit" class="btn" value="马上发布"/></li>  
	</div> 
 
	<script type="text/javascript"> 
      $("#usual1 ul").idTabs(); 
    </script>
    
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>
    </div>
</form>


</body>

</html>